﻿@using CoralNode.MvcClient.Helper

@{
    ViewBag.Title = "Index";
}
@Html.IncludePage("CoralAdmin/user", "_Left")
<!--content-->
<div id="pbody">
    <div class="extra">
        <div class="pbody_top">
            <span class="ico ico_setting_user"></span><span class="t t_c">用户管理&nbsp;&nbsp;/&nbsp;&nbsp;权限管理</span>
        </div>
        <div id="main">
            <div class="">
                <div class="tablelist_style1" data-js="tabellist_style1">
                    <div class="funsearch p_1 pl_2 pr_2 extra_normal">
                        <a class="btn_5 f_r ml_3" href="/m/user/CreateRole">添加角色</a>
                    </div>
                    <table cellpadding="0" cellspacing="0">
                        <tr class="exclude">
                            <th width="60">选择</th>
                            <th align="left" width="50">ID</th>
                            <th align="left">名称</th>
                            <th>状态</th>
                            <th align="center" width="140">操作</th>
                        </tr>
                        @foreach (var item in @ViewBag.RoleList)
                        {
                            <tr>
                                <td>
                                    <label class="checkbox_own">
                                        <input type="checkbox" value="@item.Id"/></label></td>
                                <td class="td_left">@item.Id</td>
                                <td class="td_left"><a href="/m/user/editRole/@item.Id">@item.Name</a></td>
                                <td><a href="/m/user/ChangeRoleStatus/@item.Id" class="ico ico_eye_@item.Status js_changestate btn"></a></td>
                                <td>
                                    <div class="fun">
                                        <a href="/m/user/SettingRole/@item.Id">设置权限</a><a href="/m/user/editRole/@item.Id">编辑</a><a href="/m/user/deleteRole/@item.Id" class="js_delete">删除</a>
                                    </div>
                                </td>
                            </tr>
                        }
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('.nav_left_style2').find('li').eq(1).addClass('current');
    })
</script>
